home *** CD-ROM | disk | FTP | other *** search
/ cyber.net interactivo 1997 January / inter@ivo 1997-01.iso / cybint12 / bin / ano95.dxr / 00019.ls < prev    next >
Encoding:
Text File  |  1996-12-14  |  4.1 KB  |  165 lines

  1. on exitFrame
  2.   global act
  3.   if act = 0 then
  4.     if rollOver(35) or rollOver(36) then
  5.       cursor([901, 902])
  6.     else
  7.       cursor(-1)
  8.     end if
  9.   end if
  10.   if act = 0 then
  11.     if (the mouseCast = 14) and (the visible of sprite 3 = 0) then
  12.       set the visible of sprite 3 to 1
  13.     else
  14.       if (the mouseCast <> 14) and (the visible of sprite 3 = 1) then
  15.         set the visible of sprite 3 to 0
  16.       end if
  17.     end if
  18.   end if
  19.   if act = 0 then
  20.     if (the mouseCast = 15) and (the visible of sprite 5 = 0) then
  21.       set the visible of sprite 5 to 1
  22.     else
  23.       if (the mouseCast <> 15) and (the visible of sprite 5 = 1) then
  24.         set the visible of sprite 5 to 0
  25.       end if
  26.     end if
  27.   end if
  28.   if act = 0 then
  29.     if (the mouseCast = 16) and (the visible of sprite 7 = 0) then
  30.       set the visible of sprite 7 to 1
  31.     else
  32.       if (the mouseCast <> 16) and (the visible of sprite 7 = 1) then
  33.         set the visible of sprite 7 to 0
  34.       end if
  35.     end if
  36.   end if
  37.   if act = 0 then
  38.     if (the mouseCast = 17) and (the visible of sprite 9 = 0) then
  39.       set the visible of sprite 9 to 1
  40.     else
  41.       if (the mouseCast <> 17) and (the visible of sprite 9 = 1) then
  42.         set the visible of sprite 9 to 0
  43.       end if
  44.     end if
  45.   end if
  46.   if act = 0 then
  47.     if (the mouseCast = 18) and (the visible of sprite 11 = 0) then
  48.       set the visible of sprite 11 to 1
  49.     else
  50.       if (the mouseCast <> 18) and (the visible of sprite 11 = 1) then
  51.         set the visible of sprite 11 to 0
  52.       end if
  53.     end if
  54.   end if
  55.   if act = 0 then
  56.     if (the mouseCast = 26) or (the mouseCast = 27) then
  57.       if the visible of sprite 23 = 0 then
  58.         set the visible of sprite 23 to 1
  59.       end if
  60.     else
  61.       set the visible of sprite 23 to 0
  62.     end if
  63.   end if
  64.   if act = 0 then
  65.     if (the mouseCast = 37) or (the mouseCast = 38) then
  66.       if the visible of sprite 28 = 0 then
  67.         set the visible of sprite 28 to 1
  68.         set the visible of sprite 29 to 1
  69.       end if
  70.     else
  71.       set the visible of sprite 28 to 0
  72.       set the visible of sprite 29 to 0
  73.     end if
  74.   end if
  75.   if act = 1 then
  76.     if rollOver(38) or rollOver(39) then
  77.       cursor([901, 902])
  78.     else
  79.       cursor(-1)
  80.     end if
  81.   end if
  82.   go(the frame)
  83. end
  84.  
  85. on mouseDown
  86.   if the mouseCast = 14 then
  87.     set the visible of sprite 2 to 1
  88.   end if
  89.   if the mouseCast = 15 then
  90.     set the visible of sprite 4 to 1
  91.   end if
  92.   if the mouseCast = 16 then
  93.     set the visible of sprite 6 to 1
  94.   end if
  95.   if the mouseCast = 17 then
  96.     set the visible of sprite 8 to 1
  97.   end if
  98.   if the mouseCast = 18 then
  99.     set the visible of sprite 10 to 1
  100.   end if
  101.   set i to 20
  102.   set z to 12
  103.   repeat while i < 25
  104.     if the mouseCast = i then
  105.       set the visible of sprite z to 0
  106.     end if
  107.     set i to i + 1
  108.     set z to z + 1
  109.   end repeat
  110. end
  111.  
  112. on mouseUp
  113.   if the visible of sprite 2 = 1 then
  114.     set i to 12
  115.     repeat while i < 17
  116.       set the visible of sprite i to 0
  117.       set i to i + 1
  118.     end repeat
  119.     set the visible of sprite 2 to 0
  120.     set the visible of sprite 12 to 1
  121.   end if
  122.   if the visible of sprite 4 = 1 then
  123.     set i to 12
  124.     repeat while i < 17
  125.       set the visible of sprite i to 0
  126.       set i to i + 1
  127.     end repeat
  128.     set the visible of sprite 4 to 0
  129.   end if
  130.   if the visible of sprite 6 = 1 then
  131.     set i to 12
  132.     repeat while i < 17
  133.       set the visible of sprite i to 0
  134.       set i to i + 1
  135.     end repeat
  136.     set the visible of sprite 6 to 0
  137.     set the visible of sprite 14 to 1
  138.   end if
  139.   if the visible of sprite 8 = 1 then
  140.     set i to 12
  141.     repeat while i < 17
  142.       set the visible of sprite i to 0
  143.       set i to i + 1
  144.     end repeat
  145.     set the visible of sprite 8 to 0
  146.     set the visible of sprite 15 to 1
  147.   end if
  148.   if the visible of sprite 10 = 1 then
  149.     set i to 12
  150.     repeat while i < 17
  151.       set the visible of sprite i to 0
  152.       set i to i + 1
  153.     end repeat
  154.     set the visible of sprite 10 to 0
  155.     set the visible of sprite 16 to 1
  156.   end if
  157.   if (the mouseCast = 26) or (the mouseCast = 27) then
  158.     if the visible of sprite 23 = 0 then
  159.       set the visible of sprite 23 to 1
  160.     end if
  161.   else
  162.     set the visible of sprite 23 to 0
  163.   end if
  164. end
  165.